<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// 尝试提取本地存储用户信息
			try {
				const value = uni.getStorageSync('userInfo');
				if (value) {
					// console.log(value);
					this.$store.commit('user/initInfo',value)
					this.$store.dispatch('address/addressInitAct',value.objectId)
				}
			} catch (e) {
				// error
				console.log('提取用户信息失败');
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
</style>
